
<?php include './application/views/top.php'; ?>
<script src="/static/js/gsdai.js"></script>
<script src="/static/js/ajaxfileupload.js"></script>
<script src="/static/js/My97DatePicker/WdatePicker.js"></script>
<script src="/static/js/formCheck.js"></script>

<div class="clear"></div>
<div class="user_bottom all"></div>
<div class="clear h50"></div>
<div class="layout uc">
	<?php include './application/views/user/left.php'; ?>
	<div class="right">
		<div class="menu_list"><?php include './application/views/user/menu.php'; ?></div>
        <div class="cont">
        	<ul class="tbt">
            	<li class="w118">说明信息</li>
                <li class="w200">资料类型</li>
                <li class="w150">上传时间</li>
                <li class="w150">审核说明</li>
                <li class="w100">积分</li>
                <li class="w100">状态</li>
                <li class="w100 npr">操作</li>
			</ul>
            <?php $i=0; foreach($list as $val){?>
        	<ul class="tbc">
            	<li class="w118"><?php echo $val['name'];?></li>
            	<li class="w200"><?php echo $type_list[$val['type_id']];?></li>
                <li class="w150"><?php echo date('Y-m-d',$val['add_time']);?></li>
                <li class="w150"><?php echo $val['verify_remark'];?></li>
                <li class="w100"><?php echo $val['jifen'];?></li>
                <li class="w100"><?php echo $status_list[$val['fstatus']];?></li>
            	<li class="w100 npr">
				<a href="javascript:void(0);" onclick="del('<?php echo $val['id'];?>');">删除</a>
				<a href="/<?php echo $val['litpic'];?>" target="_blank">查看</a>
                </li>
			</ul>
        	<?php }?>
        </div>
	</div>
</div>
<div class="clear h50"></div>
<?php include "./application/views/footer.php";?>
<script>
//credentials/del
function del(id){
	$('#dialog').dialog({
		modal:true,
		title:'系统提示',
		buttons:{"确定":function(){
			var options = {
				url : '/credentials/del/'+id,
				dataType: "json",
				type:"get",
				success : function(ret) {
					$('#dialog').dialog({
						modal:true,
						title:'系统提示',
						buttons:{"确定":function(){$(this).dialog("close");}},
						close: function() {
							location=ret.url;
						}
					}); 
					$("#msg").html(ret.msg);
				}
			};
			$('#tmpform').ajaxSubmit(options);
		},
		"取消":function(){$(this).dialog("close");}}
	}); 
	$("#msg").html("确定要删除吗？");
	
	
	return false;
}
</script>